package com.belf.common.constant;

/**
 * BelfCodeConstants
 *
 * @author l
 * @since 2024/7/1 10:48
 */

public class BelfCodeConstants {

    /* 数据状态打开 */
    public static final long BELF_DATA_STATUS_OPEN = 1;
    /* 数据状态关闭 */
    public static final long BELF_DATA_STATUS_CLOSE = 0;

    public static final String BELF_DATA_AUTOCOMMIT_TRUE = "true";
    public static final String BELF_DATA_AUTOCOMMIT_FALSE = "false";
    public static final String BELF_DATA_USE_UNICODE_TRUE = "true";
    public static final String BELF_DATA_USE_UNICODE_FALSE = "false";

    public static final String BELF_DATA_CASE_SENSITIVE_TRUE = "true";
    public static final String BELF_DATA_CASE_SENSITIVE_FALSE = "false";

    public static final String BELF_DATA_TASK_ERROR_STOP_TRUE = "true";
    public static final String BELF_DATA_TASK_ERROR_STOP_FALSE = "false";

    /**
     *  数据库在线
     */
    public static final Long BELF_DATASOURCE_LINE_ON = 0L;
    /**
     *  数据库离线
     */
    public static final Long BELF_DATASOURCE_LINE_OFF = 1L;

    /**
     *  任务模块开启
     */
    public static final int BELF_DATA_CONF_MODULE_LINE_ON = 1;
    /**
     *  任务模块关闭
     */
    public static final int BELF_DATA_CONF_MODULE_LINE_OFF = 0;

    /**
     *  任务初始化
     */
    public static final Long BELF_TASK_JOB_STATUS_INIT = 1L;
    /**  任务完成 */
    public static final Long BELF_TASK_JOB_STATUS_SUCCESS = 2L;

    /**  任务异常 */
    public static final Long BELF_TASK_JOB_STATUS_ERROR = 3L;
    /**  任务执行中 */
    public static final Long BELF_TASK_JOB_STATUS_RUNING = 0L;

    public static final Long BELF_TASK_JOB_STATUS_STOP = 1L;


    /**  只创建不执行 */
    public static final int BELF_TASK_JOB_CREATE_SAVE = 1;
    /**  创建后执行 */
    public static final int BELF_TASK_JOB_CREATE_RUN = 2;

    /**   */
    public static final String DATASOURCE_DATABASE_DICT = "datasource_database_type";
    public static final String BELF_DATASOURCE_DATABASE = "2";
    /**   */
    public static final String BELF_DATASOURCE_SCHEMA = "1";
}
